package com.example.car.volley.request.login;

import org.json.JSONException;
import org.json.JSONObject;

import com.example.car.manager.Constants;
import com.example.car.volley.request.Request;

public class LoginRequest  extends Request {
	private String loginname;
	private String password;
	private String android_user_id;
	private String android_channel_id;
	public LoginRequest(String loginname,String password,String android_user_id,String android_channel_id) {
		super(Constants.LOGIN);
		this.loginname=loginname;
		this.password=password;
		this.android_channel_id=android_channel_id;
		this.android_user_id=android_user_id;
		
	}
	
	@Override
	public void extentionObject(JSONObject json) {
		try {
			json.put("loginname", loginname);
			json.put("pwd",password);
			json.put("apptype", Constants.ANDROID_TAG);
			json.put("android_user_id", android_user_id);
			json.put("android_channel_id",android_channel_id);
		} catch (JSONException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
		
		
	}
	public String getLoginName(){
		return loginname;
	}
}
